﻿package h.ku.lang{	import h.ku.eval.Args;		public class hkuBoolean extends hkuObject	{		public var boolValue:Boolean		public function hkuBoolean(val:Boolean)		{			super("<anonymous> Boolean")			setType("Boolean")			this.boolValue = val			this.addAS3Function("branch",function(a:Args):void			{				var blockOne:hkuBlock = a.arguments[0] as hkuBlock				var blockTwo:hkuBlock = a.arguments[1] as hkuBlock				if(boolValue)				{					blockOne.call(new Args(a.caller,[],null),function(v:*):void					{						a.caller.finishFunctionEval(v)					},true)				}else{					if(blockTwo != null){						blockTwo.call(new Args(a.caller,[],null),function(v:*):void						{							a.caller.finishFunctionEval(v)						},true)					}				}			})		}				public override function self():*		{			return this.boolValue		}	}	}